import request from '@/api/request.js'

//登录
export const loginV1 = data => request.post('/app/wxUserInfo/phoneLogin', data)

//获取权限
export const getPermissionInfo = data => request.post('/system/users/admin/getPermissionInfo', data)

//修改密码
export const updatePassword = data => request.post('/system/users/admin/updatePassword', data)

//获取个人资料
export const getUsers = data => request.get('/system/users/admin/getUsers', data)

//修改个人资料
export const saveUsers = data => request.post('/system/users/admin/saveUsers', data)

//查询用户列表
export const listUsers = data => request.post('/system/users/admin/list', data)



//发送短信验证码
export const sendSmsVerifyCode = data => request.get('/app/wxUserInfo/sendSmsVerifyCode',data)

//GET 删除用户
export const delWxUserInfo = data => request.get('/app/wxUserInfo/delWxUserInfo',data)

//GET 根据wxUserId查询用户信息
export const getWxUserInfo = data => request.get('/app/wxUserInfo/getWxUserInfo',data)

//POST 分页查询用户
export const pageWxUserInfo = data => request.post('/app/wxUserInfo/pageWxUserInfo',data)

//POST 保存用户
export const saveWxUserInfo = data => request.post('/app/wxUserInfo/saveWxUserInfo',data)

//POST 编辑用户
export const updateWxUserInfo = data => request.post('/app/wxUserInfo/updateWxUserInfo',data)

//POST 小程序code登录
export const wxLogin = data => request.post('/app/wxUserInfo/wxLogin',data)
